using System;
using System.Collections.Generic;

namespace Smart.Common.Router
{
	/// <summary>
	/// Templates tree item
	/// </summary>
	public class RouterTemplateItem
	{
		/// <summary>
		/// List of router templates
		/// </summary>
		public List<RouterTemplate> Templates { get; protected set; }

		/// <summary>
		/// Child templates tree items
		/// </summary>
		public Dictionary<string, RouterTemplateItem> Children { get; protected set; }

		/// <summary>
		/// Templates tree item
		/// </summary>
		public RouterTemplateItem()
		{
			Templates = new List<RouterTemplate>();
			Children = new Dictionary<string, RouterTemplateItem>(StringComparer.OrdinalIgnoreCase);
		}
	}
}